const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  lintOnSave: false,
  transpileDependencies: true,
  devServer: {
    proxy: {
      '/api': {
        target: 'http://127.0.0.1:8090',
        ngeOrigin: true,
        pathRewrite: { '^/api': '' },
      },
      '/open-api': {
        target: 'http://localhost:8090/open/api/',
        ngeOrigin: true,
        pathRewrite: { '^/open-api': '' },
      },
    },
  },
  configureWebpack: {
    resolve: {
      fallback: {
        "path": false,
        "fs": false
      }
    },
    module: {
      rules: [
        {
          test: /\.mjs$/,
          include: /node_modules/,
          type: "javascript/auto"
        }
      ]
    }
  },
  transpileDependencies: ['quill']
})
